// 引入并使用路由插件
import Vue from 'vue' 
import Router from 'vue-router'
Vue.use(Router)

// 引入路由文件
import Home from './views/Home.vue'
import Register from './views/Register.vue'
import Login from './views/Login.vue'
import Error from './views/Error.vue'
import Start from './views/start.vue'
import Forget from './views/forget.vue'
import ProveCode from './views/ProveCode.vue'
import NewPassword from './views/NewPassword.vue'
import PropertyPayment from './views/PropertyPayment.vue'
import LivingPayment from './views/livingPayment.vue'
import Living from './views/living.vue'
import BoundCell from './views/BoundCell.vue'
import PhoneKey from './views/phoneKey.vue'
import Mine from './views/Mine.vue'
import PersonalInfo from './views/PersonalInfo.vue'
import Enter from './views/enter.vue'
import Examine from './views/examine.vue'
import Submit from './views/submit.vue'
import Map from './views/map.vue'
import NickName from './views/NickName.vue'
import MineCommunity from './views/MineCommunity.vue'
import ChangePassword from './views/ChangePassword.vue'
import Update from './views/Update.vue'
import RecommendDownload from './views/RecommendDownload.vue'
import Look from './views/Look.vue'
import Erweima from './views/erweima.vue'
import yunshanfuPage from './views/yunshanfuPage.vue'
import details from './views/details.vue'
import Test from './views/test.vue'
import a from './views/a.vue'
import b from './views/b.vue'
import carId from './views/carId.vue'


import start1 from './views/start1.vue'
import Agreement from './views/Agreement.vue'
import home1 from './views/home1.vue'
import onehelp from './views/oneHelp.vue'
import IDcard from './views/IDcard.vue'
import enter1 from './views/enter1.vue'
import mine1 from './views/mine1.vue'
import setting from './views/setting.vue'
import userInfo from './views/userInfo.vue'
import community from './views/community.vue'
import feedback from './views/feedback.vue'
import camera from './views/camera.vue' 
import usehelp from './views/usehelp.vue'
import doorClass from './views/doorClass.vue'
import openRecord from './views/openRecord.vue'
// import shenhelist from './views/shenhelist.vue'
// import shenhe from './'
// 实例化，给不同的路由路径匹配对应的路由文件
const router = new Router({
	// mode: 'hash', // 路由模式，默认是hash，就是在浏览器地址后面添加#
	routes: [
		
		{
			path: '/', // 根路径
			redirect: '/start1' // 重定向到首页
		},	
		{
			path: '/home', // 路由路径
			name: 'home', // 路由名称
			component: Home // 路由组件
		},	
		{
			path: '/user/register',
			name: 'register',
			component: Register
		},		
		{
			path: '/user/login',
			name: 'login',
			component: Login
		},
		{
			path: '*',
			name: 'error',
			component: Error
		},
		{
			path: '/start',
			name: 'start',
			component: Start
		},
		{
			path: '/forget',
			name: 'forget',
			component: Forget
		},
		{
			path: '/ProveCode',
			name: 'ProveCode',
			component: ProveCode
		},
		{
			path: '/NewPassword',
			name: 'NewPassword',
			component: NewPassword
		},
		{
			path: '/property',
			name: 'property',
			component: PropertyPayment
		},
		{
			path: '/water',
			name: 'water',
			component: LivingPayment
		},
		{
			path: '/living',
			name: 'living',
			component: Living
		},
		{
			path: '/boundCell',
			name: 'boundCell',
			component: BoundCell
		},
		{
			path: '/phoneKey',
			name: 'phoneKey',
			component: PhoneKey
		},
		{
			path: '/mine',
			name: 'mine',
			component: Mine
		},
		{
			path: '/personalInfo',
			name: 'personalInfo',
			component: PersonalInfo
		},
		{
			path: '/face/enter',
			name: 'enter',
			component: Enter
		},
		{
			path: '/examine',
			name: 'examine',
			component: Examine
		},
		{
			path: '/submit',
			name: 'submit',
			component: Submit
		},
		{
			path: '/map',
			name: 'map',
			component: Map
		},
		{
			path: '/nickname',
			name: 'nickname',
			component: NickName
		},
		{
			path: '/minecommunity',
			name: 'minecommunity',
			component: MineCommunity
		},
		{
			path: '/changepassword',
			name: 'changepassword',
			component: ChangePassword
		},
		{
			path: '/update',
			name: 'update',
			component: Update
		},
		{
			path: '/recommenddownload',
			name: 'recommenddownload',
			component: RecommendDownload
		},
		{
			path: '/look',
			name: 'look',
			component: Look
		},
		{
			path: '/erweima',
			name: 'erweima',
			component: Erweima
		},
		{
			path: '/yunshanfuPage',
			name:'yunshanfuPage',
			component:yunshanfuPage
		},
		{
			path: '/details',
			name:'details',
			component:details
		},
		{
			path: '/test',
			name:'test',
			component:Test
		},
		{
			path: '/carId',
			name:'carId',
			component:carId
		},
		{
			path:'/a',
			name:'a',
			component:a
		},
		{
			path:'/b',
			name:'b',
			component:b
		},


		{
			path:'/start1',
			name:'start1',
			component:start1
		},
		{
			path:'/Agreement',
			name:'Agreement',
			component:Agreement
		},
		{
			path:'/home1',
			name:'home1',
			component:home1
		},
		{
			path:'/onehelp',
			name:'onehelp',
			component:onehelp
		},
		{
			path:'/IDcard',
			name:'IDcard',
			component:IDcard
		},
		{
			path:'/enter1',
			name:'enter1',
			component:enter1
		},
		{
			path:'/mine1',
			name:'mine1',
			component:mine1
		},
		{
			path:'/setting',
			name:'setting',
			component:setting
		},
		{
			path:'/userInfo',
			name:'userInfo',
			component:userInfo
		},
		{
			path:'/community',
			name:'community',
			component:community
		},
		{
			path:'/feedback',
			name:'feedback',
			component:feedback
		},
		{
			path:'/camera',
			name:'camera',
			component:camera
		},
		{
			path:'/usehelp',
			name:'usehelp',
			component:usehelp
		},
		{
			path:'/doorClass',
			name:'doorClass',
			component:doorClass
		},
		{
			path:'/openRecord',
			name:'openRecord',
			component:openRecord
		}
	]
})

// 导出路由
export default router
